package demo05;

public class Test {
    public static void main(String[] args) {
        Armour armour=new Armour("三级甲",80);
        Weapon weapon=new Weapon("贪玩蓝月宝刀",99);
        Role role=new Role(10,"战神张三",100);
        role.setArmour(armour);
        role.setWeapon(weapon);
        role.attack();
        role.showRole();
    }
}
